/*
 ============================================================================
 Name		: beviewerDocument.cpp
 Author	  : Steve
 Copyright   : CopyRight By Steve
 Description : CbeviewerDocument implementation
 ============================================================================
 */

// INCLUDE FILES
#include "beviewerAppUi.h"
#include "beviewerDocument.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CbeviewerDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CbeviewerDocument* CbeviewerDocument::NewL(CEikApplication& aApp)
	{
	CbeviewerDocument* self = NewLC(aApp);
	CleanupStack::Pop(self);
	return self;
	}

// -----------------------------------------------------------------------------
// CbeviewerDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CbeviewerDocument* CbeviewerDocument::NewLC(CEikApplication& aApp)
	{
	CbeviewerDocument* self = new (ELeave) CbeviewerDocument(aApp);

	CleanupStack::PushL(self);
	self->ConstructL();
	return self;
	}

// -----------------------------------------------------------------------------
// CbeviewerDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CbeviewerDocument::ConstructL()
	{
	// No implementation required
	}

// -----------------------------------------------------------------------------
// CbeviewerDocument::CbeviewerDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CbeviewerDocument::CbeviewerDocument(CEikApplication& aApp) :
	CAknDocument(aApp)
	{
	// No implementation required
	}

// ---------------------------------------------------------------------------
// CbeviewerDocument::~CbeviewerDocument()
// Destructor.
// ---------------------------------------------------------------------------
//
CbeviewerDocument::~CbeviewerDocument()
	{
	// No implementation required
	}

// ---------------------------------------------------------------------------
// CbeviewerDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CbeviewerDocument::CreateAppUiL()
	{
	// Create the application user interface, and return a pointer to it;
	// the framework takes ownership of this object
	return new (ELeave) CbeviewerAppUi;
	}

// End of File
